package spil;

import desktop_resources.GUI;

public abstract class Field {
	protected int fieldNumber;
	protected String title;
	protected String subtext;
	protected String description;
	
	public abstract void landOnField(Player p);
	
	protected Field(int fieldNumber, String title, String subText, String description) {
		GUI.setTitleText(fieldNumber, title);
		GUI.setSubText(fieldNumber, subText);
		GUI.setDescriptionText(fieldNumber, description);
		this.fieldNumber = fieldNumber;
		this.title = title;
		this.subtext = subText;
		this.description = description;
	}
	
	protected Field() {}
	
	public int getField() {
		return fieldNumber;
	}
	
	public void setTitle(String title) {
		this.title = title;
		GUI.setTitleText(fieldNumber, title);
	}
	
	public void setSubtext(String subtext) {
		this.subtext = subtext;
		GUI.setSubText(fieldNumber, subtext);
	}
	
	public void setDescription(String description) {
		this.description = description;
		GUI.setDescriptionText(fieldNumber, description);
	}
}
